using System;
using System.Text;
using SpecMaker.Core.Interfaces;

namespace SpecMaker.UnitTests.SupportClasses
{
    public class StringConsoleWrapper : IConsoleWrapper
    {
        private StringBuilder _written = new StringBuilder( );

        public string Written
        {
            get { return _written.ToString(); }
        }
        public void WriteLine(string s)
        {
            _written.AppendLine(s);
        }

        public ConsoleColor ForegroundColor
        {
            get; set;
        }

        public void ResetColor()
        {
            //throw new NotImplementedException();
        }

        public void Write(string stringtowrite)
        {
            _written.Append(stringtowrite);
        }
    }
}